﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PokerService
{
    public class Card
    {
        public Rank r;
        public Suit s;
        public enum Rank
        {
            Two,
            Three,
            Four,
            Five,
            Six,
            Seven,
            Eight,
            Nine,
            Ten,
            J,
            Q,
            K,
            A
        };

        public enum Suit
        {
            spades,
            hearts,
            diamonds,
            clubs
        }

        public Card(Rank r, Suit s)
        {
            this.r = r;
            this.s = s;
        }
        //public Card(int r, int s)
        //{
        //    this.r = r;
        //    this.s = s;
        //}



        public string ToString()
        {
            return Enum.GetName(typeof(Rank), r)+"\n"+ s;
        }
    }
}
